package lxt.service;

import java.util.List;

import lxt.entity.CostFine;

/**
 * 违章罚款管理service
 * @author Lit
 *
 */
public interface CostFineService {
	/**
	 * 加载违章罚款信息 
	 * @return
	 */
	public List<CostFine> loadCostFine(String truckId,String driverId,int offset, int length)throws Exception;
	/**
	 * 添加违章罚款
	 */
	public boolean addCostFine(CostFine costFine)throws Exception;
	/**
	 * 根据id查找违章罚款
	 */
	public CostFine loadCostFineById(String id)throws Exception;
	/**
	 * 修改违章罚款
	 */
	public boolean updateCostFine(CostFine costFine)throws Exception;
	/**
	 * 删除违章罚款
	 */
	public boolean deleteCostFine(String id)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllCostFineCount(String truckId,String driverId)throws Exception;
}
